package com.starinside.wp.domain.observation;

import com.starinside.wp.domain.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * *******************************
 * Created by Tim.
 * form com.matt
 * on 2017/8/14
 * *******************************
 */
@Entity
@Data
@Table(name = "observation_record")
//@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class ObservationRecord extends Model {

    @Column
    private Integer score;

    @Column
    private Long observationId;

    @Column
    private Long optionId;

    @Column
    private Long planId;

    @Column
    private Long typeId;

    @Column
    private String teacherId;

    @Column
    private String childrenId;

    @Column
    private String remark;

    @Column
    private Date created = new Date();

    @Column(columnDefinition = " varchar(32) COMMENT '动态id' ")
    private String liveRecordId;

    @Column
    private Boolean deleted = false;

    public ObservationRecord(String teacherId, String childrenId, Integer score, Long optionId, Long observationId, Long planId, String remark) {
        this.teacherId = teacherId;
        this.childrenId = childrenId;
        this.score = score;
        this.optionId = optionId;
        this.observationId = observationId;
        this.planId = planId;
        this.remark = remark;
    }
}
